@echo off
REM ============================================
REM Whisper Model Download Script (Windows)
REM ============================================

chcp 65001 >nul

REM Save current directory and change to project root
set SCRIPT_DIR=%~dp0
cd /d "%SCRIPT_DIR%\..\.."

echo ==================================================
echo   Whisper Model Downloader
echo ==================================================
echo.

REM Activate virtual environment if exists
if exist "venv\Scripts\activate.bat" (
    call venv\Scripts\activate.bat
    echo [OK] Virtual environment activated
    echo.
)

REM Set China mirror for faster download
set HF_ENDPOINT=https://hf-mirror.com
echo [OK] China mirror configured
echo.

REM Run Python download script
python download_models.py %*

pause
